﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer.Model.Services;
using BusinessLayer.Model.Services.Abstract;
using BusinessLayer.Model.Services.Concrete;

namespace intecnologia.Admin
{
    public partial class Logout : System.Web.UI.Page
    {
        ISessionService _sessionService = new SessionService();

        protected void Page_Load(object sender, EventArgs e)
        {
            

            if (_sessionService.SessionExpired())
                Response.Redirect("~/Admin/Default.aspx");

            _sessionService.ClearUserSession();
            Response.Redirect("~/Admin/Default.aspx");
        }
    }
}
